<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all"/>
    <link rel="stylesheet" href="{:_SKIN}/shadmin/v3//css/news.css" media="all"/>
</head>
<body class="childrenBody">
<blockquote class="layui-elem-quote mylog-info-tit">
    <div class="layui-inline">
        <form class="layui-form" id="roleSearchForm" action="{:url('userlist')}">
            
            <div class="layui-input-inline" style="width:180px;">
                <input type="text" name="key" id="key" value="" placeholder="请输入用户手机号或姓名" class="layui-input search_input">
            </div>
            <button  class="layui-btn layui-btn-normal  roleAdd_btn"  > <i class="layui-icon larry-icon larry-xinzeng1"></i>搜索</button>
        </form>
    </div>

    


    <div class="layui-inline">
        <a class="layui-btn layui-btn-normal excelRoleExport_btn" style="background-color:#5FB878"> <i
                class="layui-icon larry-icon larry-danye"></i>导出</a>
    </div>

    <div class="layui-inline">
        <div class="layui-form-mid layui-word-aux">　共找到 {$all} 个会员</div>
    </div>


</blockquote>

<div class="layui-form news_list">
    <table class="layui-table">
        
        <thead>
        <tr>
            <th>ID</th>
            
            <th>微信</th>
            <th >姓名</th>
            <th>手机号</th>
            
            <th>注册时间</th>
            <th>状态</th>
            <th>发布时间</th>
           
            <th>上传</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody class="news_content">
        {volist name="list" id="v"}
        <tr id="d{$v.id}">
            <td>{$v.ID}
            </td>


            <td style="text-align: left;">
              
             
              {empty name="v.pic"}

              <img src="{:_SKIN}/weixin/my/pic/p1.png" width="30" height="30" style="border-radius: 55px">


               {else /}

               <img src="{$v.pic}" width="30" height="30" style="border-radius: 55px">
              {/empty}
              
               {$v.nickname}

            </td>



            <td>{$v.name}</td>
            <td>{$v.tel}</td>
           

            <td>{$v.addtime} 
            </td>


            {eq name="v.state" value="3"}
            <td><input type="checkbox" name="show" lay-skin="switch" lay-text="启用|停用" lay-filter="isShow"
                       data-id="{$v.id}" checked=""></td>
            {else /}
            <td><input type="checkbox" name="show" lay-skin="switch" lay-text="启用|停用" lay-filter="isShow"
                       data-id="{$v.id}"></td>
            {/eq}


            <td>{$v.addtime}</td>
            <td>{$v.addname}</td>
            <td></td>
        </tr>
        {/volist}
        </tbody>
    </table>
</div>

<div id="page">{$page}</div>
{:jq()}
{:layui()}
<style>
    .pagination {
        margin-left: 50px;
    }

    .pagination li {
        float: left;
        background: #34a8fe;
        color: #fff;
        margin-right: 8px;
    }

    .pagination li a, .pagination li span {
        color: #fff;
        padding: 8px 10px;
        display: block
    }

    .pagination .active {
        background-color: #fe6738
    }

</style>
<script>

  


    //删除商品
    $(".pro_del").click(function () {
        var id = $(this).data('id');
        parent.layer.confirm("确定要删除该商品吗？删除后不可恢复", function () {
            $("#d"+id).remove();
            parent.layer.msg('删除成功', {shift: 0, time: 2000}, function () {


            });

            $.post("{:url('dev/delapi')}", {t: 'so9_99product',k:'id',v:id}, function (res) {

                if (res.code == 200) {




                } else {

                    parent.layer.msg(res.msg);

                }

            });


        });


    });



    //修改产品状态
    /*
    layui.form.on('switch(isShow)', function (data) {
        var id = $(data.elem).data('id');


        var key = data.elem.checked ? 3 : 4;

        $.post("{:url('dev/changeapi')}", {table:'so9_99product',key: id, val: key}, function (res) {

            if (res.code != 200) {

                panent.layer.alert('网络繁忙，请重试');

            }

        });


    });*/

    //预览产品

    $(".v_product").click(function(){

        var url=$(this).data('url');

        layer.open({
            type: 2,
            title: '商品预览',
            shadeClose: true,
            shade: 0.8,
            area: ['380px', '90%'],
            content: url //iframe的url
        });



    });

</script>
</body>
</html>